from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter


from apps.users.views import Registered, ObtainJSONWebToken

router = DefaultRouter()
router.register(r'Registered', Registered, basename='Registered')  # 注册

urlpatterns = [
    url('', include(router.urls)),
    url("^login/", ObtainJSONWebToken.as_view())
]
